package com.dilean.api.dao;

import java.util.Collection;

import com.dilean.api.model.AbstractEntity;

public interface AbstractDAO<T extends AbstractEntity>
{
    public T findById(Integer id);

    public Collection<T> findByName(String entityName);

    public T save(T entity);

    public void delete(T entity);

	public Collection<T> findAll();
}
